package cn.edu.xaut.mybatisers.mall.tool;

import cn.edu.xaut.mybatisers.mall.Entity.AReturnDataStruct;

public class AReturnStructFactory {
    static public AReturnDataStruct returnDataStructFactory(
            Boolean result,
            String message,
            int code,
            Object data
    ){
        AReturnDataStruct aReturnDataStruct = new AReturnDataStruct();
        aReturnDataStruct.setData(data);
        aReturnDataStruct.setResult(result);
        aReturnDataStruct.setCode(code);
        aReturnDataStruct.setMessage(message);
        return aReturnDataStruct;
    }
}
